package com.qf.controller;

import com.qf.service.CityService;
import com.qf.utils.ResultMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/city")
public class CityController {
    @Autowired
    CityService cityService;
    @GetMapping("/findallcitys")
    public ResultMsg findAllCitys(){//查询所有城市
        return cityService.findAllCitys();
    }
}
